#define _CRT_SECURE_NO_WARNINGS

#include <iostream>
#include <string>
#include <unordered_map>
using namespace std;

int main()
{
    string s1, s2;
    cin >> s1;
    cin >> s2;
    unordered_map<char, int> _hash1;
    unordered_map<char, int> _hash2;
    for (auto ch : s1)
        _hash1[ch]++;

    for (auto ch : s2)
        _hash2[ch]++;
    bool flag = true;
    for (auto kv : _hash2)
    {
        char a = kv.first;
        int b = kv.second;
        auto it = _hash1.find(a);
        if (it == _hash1.end() || b > it->second)
        {
            //cout << a << b << _hash1.count(a) << " ";
            cout << "No" << endl;
            flag = false;
            break;
        }
    }
    if (flag)  cout << "Yes" << endl;

    return 0;
}

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long ll;
bool myfunction(int i, int j) { return (i > j); }
int main()
{
    int n;
    cin >> n;
    vector<ll> arr(n * 3);
    for (auto& e : arr)  cin >> e;
    sort(arr.begin(), arr.end(), myfunction);
    ll ret = 0;
    for (int i = 1; i <= 2 * n; i += 2)
    {
        //cout << arr[i] << " "; 
        ret += arr[i];
    }
    cout << ret << endl;
    return 0;
}